home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / TerminalTools.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.9 KB  |  138 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1988-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT TerminalTools;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __TERMINALTOOLS__}
  28. {$SETC __TERMINALTOOLS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC TerminalToolsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __TERMINALS__}
  41. {$I Terminals.p}
  42. {$ENDC}
  43.  
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49.  
  50. CONST
  51.     tdefType                    = 'tdef';
  52.     tvalType                    = 'tval';
  53.     tsetType                    = 'tset';
  54.     tlocType                    = 'tloc';
  55.     tscrType                    = 'tscr';
  56.     tbndType                    = 'tbnd';
  57.     tverType                    = 'vers';
  58.  
  59.                                                                 {  messages  }
  60.     tmInitMsg                    = 0;
  61.     tmDisposeMsg                = 1;
  62.     tmSuspendMsg                = 2;
  63.     tmResumeMsg                    = 3;
  64.     tmMenuMsg                    = 4;
  65.     tmEventMsg                    = 5;
  66.     tmActivateMsg                = 6;
  67.     tmDeactivateMsg                = 7;
  68.     tmGetErrorStringMsg            = 8;
  69.     tmIdleMsg                    = 50;
  70.     tmResetMsg                    = 51;
  71.     tmKeyMsg                    = 100;
  72.     tmStreamMsg                    = 101;
  73.     tmResizeMsg                    = 102;
  74.     tmUpdateMsg                    = 103;
  75.     tmClickMsg                    = 104;
  76.     tmGetSelectionMsg            = 105;
  77.     tmSetSelectionMsg            = 106;
  78.     tmScrollMsg                    = 107;
  79.     tmClearMsg                    = 108;
  80.     tmGetLineMsg                = 109;
  81.     tmPaintMsg                    = 110;
  82.     tmCursorMsg                    = 111;
  83.     tmGetEnvironsMsg            = 112;
  84.     tmDoTermKeyMsg                = 113;
  85.     tmCountTermKeysMsg            = 114;
  86.     tmGetIndTermKeyMsg            = 115;
  87.  
  88.                                                                 {  messages for validate DefProc     }
  89.     tmValidateMsg                = 0;
  90.     tmDefaultMsg                = 1;
  91.  
  92.                                                                 {  messages for Setup DefProc     }
  93.     tmSpreflightMsg                = 0;
  94.     tmSsetupMsg                    = 1;
  95.     tmSitemMsg                    = 2;
  96.     tmSfilterMsg                = 3;
  97.     tmScleanupMsg                = 4;
  98.  
  99.                                                                 {  messages for scripting defProc     }
  100.     tmMgetMsg                    = 0;
  101.     tmMsetMsg                    = 1;
  102.  
  103.                                                                 {  messages for localization defProc   }
  104.     tmL2English                    = 0;
  105.     tmL2Intl                    = 1;
  106.  
  107.  
  108. TYPE
  109.     TMSearchBlockPtr = ^TMSearchBlock;
  110.     TMSearchBlock = RECORD
  111.         theString:                StringHandle;
  112.         where:                    Rect;
  113.         searchType:                TMSearchTypes;
  114.         callBack:                TerminalSearchCallBackUPP;
  115.         refnum:                    INTEGER;
  116.         next:                    TMSearchBlockPtr;
  117.     END;
  118.  
  119.     TMSetupStructPtr = ^TMSetupStruct;
  120.     TMSetupStruct = RECORD
  121.         theDialog:                DialogPtr;
  122.         count:                    INTEGER;
  123.         theConfig:                Ptr;
  124.         procID:                    INTEGER;                                {  procID of the tool  }
  125.     END;
  126.  
  127.     TMSetupPtr                            = ^TMSetupStruct;
  128. {$ALIGN RESET}
  129. {$POP}
  130.  
  131. {$SETC UsingIncludes := TerminalToolsIncludes}
  132.  
  133. {$ENDC} {__TERMINALTOOLS__}
  134.  
  135. {$IFC NOT UsingIncludes}
  136.  END.
  137. {$ENDC}
  138.